SWEP.Manufacturer		= "FN Herstal"
SWEP.Cartridge			= "5.7x28mm"

if ( CLIENT ) then
	SWEP.Author				= "CSE2 - Night-Eagle"
	SWEP.Contact			= "gmail sedhdi"
	SWEP.Purpose			= ""
	SWEP.Instructions		= ""
	SWEP.PrintName			= "P90"
	SWEP.Instructions		= "Hold use and right-click to change firemodes."
	SWEP.Slot				= 2
	SWEP.SlotPos			= 0
	SWEP.IconLetter			= "m"
	
	killicon.AddFont("cse2_p90","CSKillIcons",SWEP.IconLetter,Color(255,80,0,255))
end

if ( SERVER ) then
	AddCSLuaFile( "shared.lua" )
end


SWEP.Base				= "cse2_base"

SWEP.Spawnable			= true
SWEP.AdminSpawnable		= true

SWEP.ViewModel			= "models/weapons/v_smg_p90.mdl"
SWEP.WorldModel			= "models/weapons/w_smg_p90.mdl"
SWEP.HoldType = "smg"

SWEP.Weight				= 5

SWEP.Primary.Sound			= Sound("Weapon_P90.Single")
SWEP.Primary.Recoil			= 1.25
SWEP.Primary.Unrecoil		= 7
SWEP.Primary.Damage			= 14
SWEP.Primary.NumShots		= 1
SWEP.Primary.Cone			= 0.055
SWEP.Primary.ClipSize		= 50
SWEP.Primary.DefaultClip	= 60
SWEP.Primary.Ammo			= "smg1"

//Firemode configuration

SWEP.IronPos = Vector(2.4,-5,3.5)
SWEP.IronAng = Vector(3.3,-4,-15)

SWEP.ViewModelFlip = true

SWEP.firemode = "auto"

SWEP.Data = {
	semi = {
		Delay = .09,
		Cone = 0.012,
		ConeZoom = 0.009,
	},
	auto = {
		Delay = .09,
		Cone = 0.014,
		ConeZoom = 0.01,
	},
	zoom = {
		[1] = {
			fov = 70,
		},
	},
}

//End of configuration

SWEP.Secondary.ClipSize		= -1
SWEP.Secondary.DefaultClip	= -1
SWEP.Secondary.Automatic	= false
SWEP.Secondary.Ammo			= "none"
